package com.cdtye.shuoh.service.rule;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cdtye.shuoh.domain.rule.entity.Rule;
import com.cdtye.shuoh.domain.rule.vo.RuleVo;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface RuleService extends IService<Rule> {
    IPage<Rule> pageList(RuleVo vo);

    List<Rule> list(RuleVo vo);

    Boolean insertRule(Rule rule);

    Boolean updateRule(Rule rule);

    Rule getRuleById(String id);

    void processingRule(String productIdentification, String serviceId, String deviceIdentification, Date time, Map<String, Object> data);

    boolean deleteRuleById(String id);
}
